package com.bjpowernode.validator.server;

import com.bjpowernode.validator.pojo.Department;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;

/**
 * ClassName:DapartmentService
 * Package:com.bjpowernode.validator.server
 * Description: 描述信息
 *
 * @date:2022/3/19 16:57
 * @author:动力节点
 */
@Service
@Validated
public class DepartmentService {
    public void add(@Valid Department department){
        System.out.println("部门添加成功");
    }
}
